﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SocketUDPAndTCPcommunication.ServerResponse
{
    class NetworkServerProtocolManage
    {
        public bool ResponseProtocol(byte[] data, int ProtocolBodyLength)
        {
            ProtocolEnumType protocolEnumType = NetworkUtils.GetProtoccType(data);
            Console.WriteLine("获取到信息类型："+protocolEnumType);
            return FindProtocolForEnumType.RegisteredProtocol[protocolEnumType].Response(data, ProtocolBodyLength);

        }
    }
}
